import { request, METHOD } from "@/utils/request";
import {
  WORD,DELWORD,ADDWORD,UPDATEWORD,ITEMLIST,ITEMPAGE
  ,ADDITEM,UPDATEITEM,DELITEM,ADDWHITEWORD,
  UPDATEWHITEWORD,DELWHITEWORD
} from "./api";

export function list(params) {
  return request(WORD, METHOD.GET, params);
}
export function add(params) {
  return request(ADDWORD, METHOD.POST, params);
}
export function update(params) {
  return request(UPDATEWORD, METHOD.POST, params);
}
export function del(params) {
  return request(DELWORD, METHOD.POST, params);
}
export function itemList(params) {
  return request(ITEMLIST, METHOD.GET, params);
}
export function itemPage(params) {
  return request(ITEMPAGE, METHOD.GET, params);
}
export function additem(params) {
  return request(ADDITEM, METHOD.POST, params);
}
export function updateitem(params) {
  return request(UPDATEITEM, METHOD.POST, params);
}
export function delitem(params) {
  return request(DELITEM, METHOD.GET, params);
}
//白名单词库
export function addwhite(params) {
  return request(ADDWHITEWORD, METHOD.POST, params);
}
export function updatewhite(params) {
  return request(UPDATEWHITEWORD, METHOD.POST, params);
}
export function delwhite(params) {
  return request(DELWHITEWORD, METHOD.POST, params);
}